import Vue from 'vue'

import VueRouter from 'vue-router'
Vue.use(VueRouter)

import moment from 'moment'
// 定义全局的过滤器
Vue.filter('dateFormat', function (dataStr, pattern = "YYYY-MM-DD HH:mm:ss") {
    return moment(dataStr).format(pattern)
})

import router from './router.js'
// 按需导入 Mint-UI 中的组件
import { Header } from 'mint-ui'
Vue.component(Header.name, Header)
// 林伯土
// 安装vue-resource
import VueResource from 'vue-resource'
Vue.use(VueResource)
// muint
import { Swipe, SwipeItem, Button } from 'mint-ui';
Vue.component(Swipe.name, Swipe);
Vue.component(SwipeItem.name, SwipeItem, Button);

import '../node_modules/mint-ui/lib/style.css'
import './lib/mui/css/mui.min.css'
import './lib/mui/css/icons-extra.css'
import './lib/mui/fonts/mui-icons-extra.ttf'
import app from './App.vue'
var vm = new Vue({
    el: '#app',
    render: c => c(app),
    router
})